﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E6D RID: 3693
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueBuff : IMessage<RogueBuff>, IMessage, IEquatable<RogueBuff>, IDeepCloneable<RogueBuff>, IBufferMessage
	{
		// Token: 0x17002EE2 RID: 12002
		// (get) Token: 0x0600A5AC RID: 42412 RVA: 0x001BE29C File Offset: 0x001BC49C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueBuff> Parser
		{
			get
			{
				return RogueBuff._parser;
			}
		}

		// Token: 0x17002EE3 RID: 12003
		// (get) Token: 0x0600A5AD RID: 42413 RVA: 0x001BE2A3 File Offset: 0x001BC4A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueBuffReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002EE4 RID: 12004
		// (get) Token: 0x0600A5AE RID: 42414 RVA: 0x001BE2B5 File Offset: 0x001BC4B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueBuff.Descriptor;
			}
		}

		// Token: 0x0600A5AF RID: 42415 RVA: 0x001BE2BC File Offset: 0x001BC4BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuff()
		{
		}

		// Token: 0x0600A5B0 RID: 42416 RVA: 0x001BE2C4 File Offset: 0x001BC4C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuff(RogueBuff other) : this()
		{
			this.level_ = other.level_;
			this.buffId_ = other.buffId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A5B1 RID: 42417 RVA: 0x001BE2F5 File Offset: 0x001BC4F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuff Clone()
		{
			return new RogueBuff(this);
		}

		// Token: 0x17002EE5 RID: 12005
		// (get) Token: 0x0600A5B2 RID: 42418 RVA: 0x001BE2FD File Offset: 0x001BC4FD
		// (set) Token: 0x0600A5B3 RID: 42419 RVA: 0x001BE305 File Offset: 0x001BC505
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17002EE6 RID: 12006
		// (get) Token: 0x0600A5B4 RID: 42420 RVA: 0x001BE30E File Offset: 0x001BC50E
		// (set) Token: 0x0600A5B5 RID: 42421 RVA: 0x001BE316 File Offset: 0x001BC516
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffId
		{
			get
			{
				return this.buffId_;
			}
			set
			{
				this.buffId_ = value;
			}
		}

		// Token: 0x0600A5B6 RID: 42422 RVA: 0x001BE31F File Offset: 0x001BC51F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueBuff);
		}

		// Token: 0x0600A5B7 RID: 42423 RVA: 0x001BE32D File Offset: 0x001BC52D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueBuff other)
		{
			return other != null && (other == this || (this.Level == other.Level && this.BuffId == other.BuffId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A5B8 RID: 42424 RVA: 0x001BE36C File Offset: 0x001BC56C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.BuffId != 0U)
			{
				num ^= this.BuffId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A5B9 RID: 42425 RVA: 0x001BE3C4 File Offset: 0x001BC5C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A5BA RID: 42426 RVA: 0x001BE3CC File Offset: 0x001BC5CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A5BB RID: 42427 RVA: 0x001BE3D8 File Offset: 0x001BC5D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Level);
			}
			if (this.BuffId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.BuffId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A5BC RID: 42428 RVA: 0x001BE434 File Offset: 0x001BC634
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.BuffId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A5BD RID: 42429 RVA: 0x001BE48C File Offset: 0x001BC68C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueBuff other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.BuffId != 0U)
			{
				this.BuffId = other.BuffId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A5BE RID: 42430 RVA: 0x001BE4DC File Offset: 0x001BC6DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A5BF RID: 42431 RVA: 0x001BE4E8 File Offset: 0x001BC6E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.BuffId = input.ReadUInt32();
					}
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400435C RID: 17244
		private static readonly MessageParser<RogueBuff> _parser = new MessageParser<RogueBuff>(() => new RogueBuff());

		// Token: 0x0400435D RID: 17245
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400435E RID: 17246
		public const int LevelFieldNumber = 3;

		// Token: 0x0400435F RID: 17247
		private uint level_;

		// Token: 0x04004360 RID: 17248
		public const int BuffIdFieldNumber = 9;

		// Token: 0x04004361 RID: 17249
		private uint buffId_;
	}
}
